import request from '@/utils/request'

// 查询活动地址管理列表(分页)
export function pageActivityAddress (query) {
  return request({
    url: '/system/activityAddress/page',
    method: 'get',
    params: query
  })
}
// 查询活动地址管理列表
export function listActivityAddress (query) {
  return request({
    url: '/system/activityAddress/list',
    method: 'get',
    params: query
  })
}


// 查询活动列表
export function listActivity (query) {
  return request({
    url: '/system/activityAddress/activityList',
    method: 'get',
    params: query
  })
}

// 查询活动地址管理详细
export function getActivityAddress (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/activityAddress/getInfo',
    method: 'get',
    params: params
  })
}

// 新增活动地址管理
export function addActivityAddress (data) {
  return request({
    url: '/system/activityAddress/insert',
    method: 'post',
    data: data
  })
}

// 修改活动地址管理
export function updateActivityAddress (data) {
  return request({
    url: '/system/activityAddress/update',
    method: 'post',
    data: data
  })
}

// 删除活动地址管理
export function delActivityAddress (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/activityAddress/delete',
    method: 'post',
    params: params
  })
}
// 批量删除活动地址管理
export function delBatchActivityAddress (ids) {
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/activityAddress/deleteBatch',
    method: 'post',
    params: params
  })
}

// 导入活动地址管理
export function importData (data) {
  return request({
    url: '/system/activityAddress/importData',
    method: 'post',
    data: data
  })
}
